<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script src="arraylist.js"></script>

    <script>
        // 初始化数据项
        var list = new ArrayList()

        list.insert(3)
        list.insert(6)
        list.insert(4)
        list.insert(2)
        list.insert(11)
        list.insert(10)
        list.insert(5)

        console.log(list.toString());
        // console.log(list.bubbleSort());
        // console.log(list.selectionSort());
        // console.log(list.insertionSort());
        console.log(list.shellSort());
        console.log(list.quickSort());
    </script>
    
</body>
</html>